*Table A.11: Self-reported feedback on the ease of implementation of the protocols
cd ""

use "master_data_adults_child_s13456_shared.dta", clear 

drop meal_control snack_control
gen meal_control=1 if treatment==2
replace meal_control=0 if treatment==1

gen snack_control=1 if treatment==3
replace snack_control=0 if treatment==1

drop if type_id=="X" // **Dropping newborns born during the three years of study
drop if id=="3885553B" //**error in the id number and empty data
drop if id=="3885553G" //**error in the id number and empty data
replace treatment=2 if id=="38855553B" //**retrieving the correct treatment for this id
replace treatment=2 if id=="38855553G" //**retrieving the correct treatment for this id
drop if id=="101aa22c" //**this id does not exist
drop if id=="27655663" //**outlier on many measurements

**Table A.5 Self-reported feedback on the ease of implementation of the protocols
replace easy_child_stick_meal_snack_time=1 if  easy_child_stick_meal_snack_time==14
replace easy_child_stick_meal_snack_time=2 if  easy_child_stick_meal_snack_time==15
replace easy_child_stick_meal_snack_time=3 if  easy_child_stick_meal_snack_time==16
replace easy_child_stick_meal_snack_time=4 if  easy_child_stick_meal_snack_time==17
replace easy_child_stick_meal_snack_time=5 if  easy_child_stick_meal_snack_time==18

replace easy_child_not_snack=1 if  easy_child_not_snack==14
replace easy_child_not_snack=2 if  easy_child_not_snack==15
replace easy_child_not_snack=3 if  easy_child_not_snack==16
replace easy_child_not_snack=4 if  easy_child_not_snack==17
replace easy_child_not_snack=5 if  easy_child_not_snack==18

*Panel A: meal
tab easy_cook_meals if session==3 & treatment==2
tab easy_stick_recipes if session==3 & treatment==2

*Panel B: Snack
tab easy_stick_meal_times if session==3 & treatment==3
tab easy_child_stick_meal_snack_time if session==3 & treatment==3
tab easy_adult_not_snack if session==3 & treatment==3
tab easy_child_not_snack if session==3 & treatment==3


